package modules

import com.google.inject.{AbstractModule, Provides}
import config.JwtConfig
import play.api.Configuration

/**
 * Created by yz on 9/8/2022
 */
class ConfigModule extends AbstractModule {

  @Provides()
  def jwtConfig(global: Configuration): JwtConfig = {
    JwtConfig(global.get[Configuration]("jwt"))
  }

}
